package com.lucy.flow.domain.entity;

import com.lucy.common.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author kindear
 * 流程节点分配
 */
@Getter
@Setter
@ToString
@RequiredArgsConstructor
@Entity
@Table(name = "flow_node_assign")
@ApiModel(value = "节点指派",description = "")
public class FlowNodeAssign extends BaseEntity implements Serializable {

    @ApiModelProperty("流程定义ID")
    @Column(name = "flow_define_id")
    String flowDefineId;
    /**
     * 流程定义编码
     */
    @ApiModelProperty("流程定义编码")
    @Column(name = "flow_define_code")
    String flowDefineCode;

    @ApiModelProperty("流程名称")
    @Column(name = "flow_name")
    String flowName;

    /**
     * 对应流程节点ID
     */
    @ApiModelProperty("流程节点ID")
    @Column(name = "flow_node_id")
    String flowNodeId;

    @ApiModelProperty("流程节点名称")
    @Column(name = "flow_node_name")
    String flowNodeName;

    /**
     * 指派对象
     */
    @ApiModelProperty(value = "指派对象",notes = "DEPT / ROLE / USER")
    @Column(name = "assign_type")
    String assignType;

    /**
     * 指派对象ID
     */
    @ApiModelProperty("指派对象ID")
    @Column(name = "assign_id")
    String assignId;


}
